﻿using MB.Orm.DB;
using Model;
using Public.DataAccess;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Business.Service
{
    public class BLocationInventory
    {
        public List<LocationInventoryInfo> GetLocationInventoryList(int pageIndex, int pageSize, out int total, params object[] parValues)
        {
            using (var DbScope = new OperationDatabaseScope(new OperationDatabaseContext("NewWeb")))
            {
                List<LocationInventoryInfo> list = PagedDatabaseExcuteByXmlHelper.NewInstance.GetPagedObjectsByXml3<LocationInventoryInfo>
                                                ("Location", "GetLocationInventoryList", pageIndex, pageSize, out total, parValues);
                return list;
            }
        }
    }
}
